home *** CD-ROM | disk | FTP | other *** search
- on mouseWithin
- cursor(280)
- end
-
- on mouseLeave
- cursor(0)
- end
-
- on mouseDown
- tell the stage
- RegWin = window("regions")
- end tell
- tell the stage
- myRect = window("regions").rect
- end tell
- tell the stage
- myWidth = getAt(myRect, 3) - getAt(myRect, 1)
- end tell
- tell the stage
- myHeight = getAt(myRect, 4) - getAt(myRect, 2)
- end tell
- tell the stage
- myLocH = ((the stageRight + the stageLeft) / 2) - (myWidth / 2)
- end tell
- tell the stage
- myLocV = ((the stageTop + the stageBottom) / 2) - (myHeight / 2)
- end tell
- tell the stage
- myNewRect = rect(myLocH, myLocV, myLocH + myWidth, myLocV + myHeight)
- end tell
- tell the stage
- window("regions").rect = myNewRect
- end tell
- tell the stage
- window("regions").windowType = 3
- end tell
- tell the stage
- open(RegWin)
- end tell
- end
-